<div class="row">
	<div class="col-md-12">
		<div class="box-body  no-padding">
			<form id="viewForm" class="form-horizontal">
				<div class="form-group">
					<label id="resourceNameLabel" for="resourceName" class="col-sm-2 control-label">名称</label>
					<div class="col-sm-4">
						<input type="text" class="form-control" name="name"  id="resourceName"  value="${resource.name}" >
					</div>
					<label id="resourceCodeLabel" for="resourceCode" class="col-sm-1 control-label" >编码</label>
					<div class="col-sm-4">
						<input type="text" class="form-control" name="code" id="resourceCode" value="${resource.code}" >
					</div>
				</div>
				<div class="form-group">
					<label id="resourceSortOrderLabel" for="resourceSortOrder" class="col-sm-2  control-label">排序</label>
					<div class="col-sm-4">
						<input class="form-control" name="sortOrder" id="resourceSortOrder" type="number" value="${resource.sortOrder}">
					</div>
					<label id="resourceStatusLabel" for="resourceStatus" class="col-sm-1  control-label">状态</label>
					<div class="col-sm-4">
						<select class="form-control" id="resourceStatus"  name="status"  value="${resource.status}" style="width: 100%;" >
						</select>
					</div>
				</div>
				<div class="form-group">
					<label id="resourceTypeLabel" for="resourceType" class="col-sm-2  control-label">类型</label>
					<div class="col-sm-9">
						<select class="form-control" id="resourceType" name="type"  value="${resource.type}" style="width: 100%;"  >
						</select>
					</div>
				</div>
				<div class="form-group">
					<label id="resourceDescriptionLabel" class="col-sm-2 control-label" >描述</label>
					<div class="col-sm-9">
						<input type="text" class="form-control" name="description" id="resourceDescription"  value="${resource.description}" >
					</div>
				</div>
				<div class="form-group">
					<label id="resourceRemarkLabel" class="col-sm-2 control-label">备注</label>
					<div class="col-sm-9">
						<input type="text" class="form-control" name="remark" id="resourceRemark"  value="${resource.remark}">
					</div>
				</div>
				<div class="form-group">
					<label id="resource-createTime-label" class="col-sm-2 control-label">创建时间：</label>
					<div class="col-sm-9">
						<input type="text" class="form-control" name="remark" id="resource-createTime"  value="${(resource.createTime?string('yyyy-MM-dd HH:mm:ss'))!}" >
					</div>
				</div>
				<div class="form-group">
					<label id="resource-updateTime-label" class="col-sm-2 control-label">更新时间：</label>
					<div class="col-sm-9">
						<input type="text" class="form-control" name="remark" id="resource-updateTime"  value="${(resource.updateTime?string('yyyy-MM-dd HH:mm:ss'))!}" >
					</div>
				</div>
			</form>
		</div>
		<div class="box-footer">
			<div class="pull-right">
				<button type="button" class="btn btn-default btn-sm" id="close" data-dismiss="modal"><i class="fa fa-close"></i>关闭</button>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript">
	$(function() {
		$("#resourceType").select2({
			data: ResourceTypeStore,
            language: "zh-CN",
            theme: "bootstrap"
		});
        $("#resourceType").select2('val','${resource.type}');


		$("#resourceStatus").select2({
			data: StatusStore,
			language: "zh-CN",
            theme: "bootstrap"
		});
        $("#resourceStatus").select2("val",'${resource.status}');
	});
</script>
